package Afternoon;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public class Afternoon03 {

    public static void main(String[] args) {

        LinkedHashMap<String, Integer> map = new LinkedHashMap<>();


        map.put("张三", 23);
        map.put("李四", 24);
        map.put("王五", 25);


        Set<Map.Entry<String, Integer>> res = map.entrySet();

        for (Map.Entry<String, Integer> re : res) {

            String key = re.getKey();
            Integer Value = re.getValue();

            System.out.println(key+"---------"+Value);

        }


    }
}